package com.sparrow.manage.util.IPData;

public class IPv4Address extends IPAddress {

    private int ipValue;

    private int port = 80;

    public IPv4Address(String address) {
        super(address);
        if(address.indexOf(".") < 0){
            throw new IllegalArgumentException("Ipv4地址格式错误");
        }

        String posPart = "";
        if(address.indexOf(":") > 0){
            String[] split = address.split(":");
            port = Integer.parseInt(address);
        }

    }

    @Override
    public int compareTo(IPAddress o) {
        return 0;
    }
}
